﻿using ManYan.Domain.Model.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ManYan.Dapper;
using ManYan.Dapper.ManYan.Dapper;

namespace ManYan.Application
{
    public class TokenService : ITokenService
    {
        
        public tb_user_refresh_token Get(Guid id)
        {
            return Dapper<tb_user_refresh_token>.QueryFirstOrDefault("select * from tb_user_refresh_token where id=@id", new { id = id });
        }

        public List<tb_user_refresh_token> List(string sql)
        {
            return Dapper<tb_user_refresh_token>.Query("select * from tb_user_refresh_token");
        }
    }
}
